.email-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

h1 {
    text-align: center;
    color: #333;
}

.email-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="file"] {
    padding: 5px;
}

textarea {
    resize: vertical;
}

.submit-button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%; /* 确保提交按钮宽度为100% */
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.result-container {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    background-color: #e9f5e9;
}

.error-message {
    color: red;
    margin-top: 10px;
}

.progress-bar-container {
    width: 100%;
    background-color: #f3f3f3;
    margin-top: 20px;
    border-radius: 4px; /* 添加圆角 */
    overflow: hidden; /* 确保内容不超出边界 */
}

.progress-bar {
    height: 30px;
    background-color: #4caf50; /* 初始颜色 */
    text-align: center;
    line-height: 30px; /* Center the text vertically */
    color: white;
    transition: width 0.5s ease-in-out; /* 添加动画效果 */
}

/* 添加颜色变化效果 */
.progress-bar {
    animation: loading 2s infinite; /* 动画效果 */
}

/* 定义动画 */
@keyframes loading {
    0% {
        background-color: #4caf50; /* 开始颜色 */
    }
    50% {
        background-color: #66bb6a; /* 中间颜色 */
    }
    100% {
        background-color: #4caf50; /* 结束颜色 */
    }
}
